<?php
/* [$WindsForce] (C)Hunzhiwange.COM Since 2012.03.17.
   WindsForce 商家后台入口文件($$)*/

error_reporting(E_ERROR|E_PARSE|E_STRICT);
//error_reporting(E_ALL);
//define('QEEPHP_DEBUG',TRUE);

/** Defined the version of WindsForce */
define('WINDSFORCE_SERVER_VERSION','2.0');
define('WINDSFORCE_SERVER_RELEASE','20140615');
define('WINDSFORCE_SERVER_BUG','1.0');

/** 安装&升级 */
if(!is_file('../../user/lock/Install.lock.php')){
	header('location:../../~@~/install/index.php');
}

/** 系统应用路径定义 */
define('WINDSFORCE_PATH',dirname(dirname(getcwd())));

/** 定义Api环境 */
define('IN_APISELF',true);

/** 项目及项目路径定义 */
define('APP_NAME','myadmin');
define('APP_PATH',WINDSFORCE_PATH.'/System/admin');
define('APP_CONTROLLER_PATH',WINDSFORCE_PATH.'/System/app/jiaju/App/Admin/App/Class/Controller');
define('APP_TEMPLATE_PATH_DEFAULT',WINDSFORCE_PATH.'/System/app/jiaju/App/Admin/Theme');

/** 项目运行时路径及数据库表缓存路径 */
define('DIS_RUNTIME_PATH',WINDSFORCE_PATH.'/~@~/app/dis');
define('APP_RUNTIME_PATH',WINDSFORCE_PATH.'/~@~/app/app/myadmin');
define('DB_META_CACHED_PATH',WINDSFORCE_PATH.'/~@~/app/field');
define('RUNTIME_FILECACHE_PATH',WINDSFORCE_PATH.'/~@~/app/data');

/** 项目语言包路径定义 */
define('__COMMON_LANG__',WINDSFORCE_PATH.'/user/language');

/** 项目模板路径定义 */
define('__ROOTS__','../..');
define('__STATICS__','System/admin/Static');
define('__THEMES__','System/admin/Theme');
$_REQUEST['t']=$_GET['t']='Myadmin';// 强制设置后台模板

/** 项目编译锁定文件定义 */
define('APP_RUNTIME_LOCK',WINDSFORCE_PATH.'/user/lock/~Runtime.inc.lock');

/** 加载框架编译版本和设置父级目录为应用名 */
//define('STRIP_RUNTIME_SPACE',false);
define('QEEPHP_THIN',true);
define('APPNAME_IS_PARENTDIR',false);

/** 去掉模板空格 */
define('TMPL_STRIP_SPACE',true);

/** 载入框架 */
require(WINDSFORCE_PATH.'/System/include/QeePHP/~@.php');
App::RUN();
